/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaa;

/**
 *
 * @author nazrin.rahman
 */
public class WhileTest {
    static boolean condition() {
        double app=0.00;
        app = Math.random();
        System.out.println("\n" + app + "000\n");
        boolean result = app < 0.85;
        System.out.print (result + ",");
        return result;
    }

public static void main(String[] args){
    while(condition ())
    System.out.println ("sono dentro 'while'");
    System.out.println ("sono uscito dal 'while'");
}
}

